<?php echo $this->getContent(); ?>
<?php use Phalcon\Tag;?>
<style>
    th,td{text-align: center;}
</style>
<h2>平台用户</h2>
<table class="table table-bordered table-striped">
    <thead>
        <th>平台用户名</th>
        <th>姓名</th>
        <th>密码</th>
        <th>电话</th>
        <th>手机</th>
        <th>E-mail</th>
        <th>添加时间</th>
        <th>更改时间</th>
        <th colspan="2">　　</th>
    </thead>
    <tbody>
    <?php foreach($page as $serverUser){ ?>
        <tr>
            <td><?=$serverUser->user ?></td>
            <td><?=$serverUser->name ?></td>
            <td><?=$serverUser->password ?></td>
            <td><?=$serverUser->phone ?></td>
            <td><?=$serverUser->mobile ?></td>
            <td><?=$serverUser->email ?></td>
            <td><?=$serverUser->addTime ?></td>
            <td><?=$serverUser->updateTime ?></td>
            <td><?=$this->tag->linkTo(array("serverusers/edit/".$serverUser->id, '修改')) ?></td>
            <td><?= $this->tag->linkTo(array("serverusers/delete/".$serverUser->id, '删除')) ?></td>
        </tr>
    <?php } ?>
    </tbody>
</table>
